// Node.h

#ifndef		NODE_H
#define		NODE_H	1

#include	<stdlib.h>
	
struct sNode {
    struct sNode *pParent, *pPrev;
    struct sNode *pChild, *pNext;
};

void NodeInit(struct sNode *pNode, char letter);
struct sNode *NodeGetRoot( struct sNode *pNode );
int NodeContains( struct sNode *pNode, struct sNode *pTest );
int NodeContainsPreOrderCN( struct sNode *pNode, struct sNode *pTest );
int NodeAdd(struct sNode *pNode, struct sNode *pNew);
int NodeDel(struct sNode *pNode, struct sNode *pOld);
int NodeMove(struct sNode *pNode, struct sNode *pMove);

#endif          //#ifndef         NODE_H
